
using UnityEditor;
using UnityEngine;

class TextureImporterAndroid : ITextureImpoter
{
    public void Import(TextureImporter importer, TextureImporterType type)
    {
        var android = new TextureImporterPlatformSettings();
        android.overridden = true;
        android.name = "Android";
        android.maxTextureSize = 2048;
        android.format = TextureImporterFormat.ASTC_6x6;

        importer.SetPlatformTextureSettings(android);
        importer.wrapMode = TextureWrapMode.Clamp;

        importer.maxTextureSize = 2048;
        importer.textureCompression = TextureImporterCompression.Compressed;
        importer.crunchedCompression = true;
        importer.compressionQuality = 60;
    }
}
